package de.hbrs.ooka.beans;

import de.hbrs.ooka.entities.ConferenceEntity;
import de.hbrs.ooka.entities.PaperEntity;
import de.hbrs.ooka.entities.UserEntity;
import de.hbrs.ooka.exception.BadReputationException;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

@Local
public interface ConferenceBeanStatelessLocal {

    public ConferenceEntity getConference(int id);

    public ConferenceEntity getConference(String name);

    public List<ConferenceEntity> getAllConferences();

    public ConferenceEntity addConference(UserEntity organizer, String name, String location, Date date, int maxParticip) throws BadReputationException;

    public void addPaperToConference(ConferenceEntity conf, PaperEntity paper);

    public void rateConference(ConferenceEntity c, UserEntity u, int rating);

    public double getReputation(ConferenceEntity conf);

}
